home *** CD-ROM | disk | FTP | other *** search
/ Nebula 2 / Nebula Two.iso / SourceCode / MiscKit1.7.1 / MiscKit / Makefiles / lib / Makefile.ofiles < prev    next >
Encoding:
Makefile  |  1994-09-22  |  1.3 KB  |  52 lines

  1. # Makefile.ofiles
  2. #
  3. # by Mike Ferris
  4. # Part of MOKit
  5. # Copyright 1993, all rights reserved
  6. #
  7. # Used in the MiscKit by permission.
  8. #
  9. # This is based on Next's standard library make architecture
  10.  
  11. ##################### Rules to build objects files #####################
  12.  
  13. ofiles:: $(OFILE_DIR) $(SYM_DIR) $(DERIVED_SRC) $(OFILES)
  14.  
  15. optimized_ofiles::
  16.     @$(ECHO) '************* $(NAME) Optimized ofiles ************'
  17.     @$(MAKE) ofiles \
  18.         "PRODUCT = $(OPT_LIB)" \
  19.         "OFILE_DIR = $(OBJROOT)/$(OPT_OBJ)" \
  20.         "SYM_DIR = $(SYMROOT)/sym" \
  21.         "OBJROOT = $(OBJROOT)" \
  22.         "SYMROOT = $(SYMROOT)" \
  23.         "CFLAGS = $(OPTCFLAGS)"
  24.  
  25. debug_ofiles::
  26.     @$(ECHO) '************* $(NAME) Debug ofiles ************'
  27.     @$(MAKE) ofiles \
  28.         "PRODUCT = $(DEBUG_LIB)" \
  29.         "OFILE_DIR = $(OBJROOT)/$(DEBUG_OBJ)" \
  30.         "SYM_DIR = $(SYMROOT)/sym" \
  31.         "OBJROOT = $(OBJROOT)" \
  32.         "SYMROOT = $(SYMROOT)" \
  33.         "CFLAGS = $(DEBUGCFLAGS)"
  34.  
  35. profile_ofiles::
  36.     @$(ECHO) '************* $(NAME) Profile ofiles ************'
  37.     @$(MAKE) ofiles \
  38.         "PRODUCT = $(PROFILE_LIB)" \
  39.         "OFILE_DIR = $(OBJROOT)/$(PROFILE_OBJ)" \
  40.         "SYM_DIR = $(SYMROOT)/sym" \
  41.         "OBJROOT = $(OBJROOT)" \
  42.         "SYMROOT = $(SYMROOT)" \
  43.         "CFLAGS = $(PROFCFLAGS)"
  44.  
  45. # making the ofile and sym directories
  46. $(OFILE_DIR) $(SYM_DIR): 
  47.     @if [ ! -d $@ ] ; then \
  48.         $(ECHO) $(MKDIRS) $(MKDIRSFLAGS) $@ ; \
  49.         $(MKDIRS) $(MKDIRSFLAGS) $@ ; \
  50.     fi
  51.  
  52.